home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / mac / DirectX SDK / DXSDK / include / DShow.h < prev    next >
C/C++ Source or Header  |  2001-10-08  |  3KB  |  79 lines

  1. //------------------------------------------------------------------------------
  2. // File: DShow.h
  3. //
  4. // Desc: DirectShow top-level include file
  5. //
  6. // Copyright (c) 2000-2001, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8.  
  9. #ifndef __DSHOW_INCLUDED__
  10. #define __DSHOW_INCLUDED__
  11.  
  12. ///////////////////////////////////////////////////////////////////////////
  13. // Set up constants & pragmas for the compiler
  14. ///////////////////////////////////////////////////////////////////////////
  15. #ifdef  _MSC_VER
  16. // disable some level-4 warnings, use #pragma warning(default:###) to re-enable
  17. #pragma warning(disable:4100) // warning C4100: unreferenced formal parameter
  18. #pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union
  19. #pragma warning(disable:4511) // warning C4511: copy constructor could not be generated
  20. #pragma warning(disable:4512) // warning C4512: assignment operator could not be generated
  21. #pragma warning(disable:4514) // warning C4514: "unreferenced inline function has been removed"
  22.  
  23. #if _MSC_VER>=1100
  24. #define AM_NOVTABLE __declspec(novtable)
  25. #else
  26. #define AM_NOVTABLE
  27. #endif
  28. #endif  // MSC_VER
  29.  
  30. ///////////////////////////////////////////////////////////////////////////
  31. // Include standard Windows files
  32. ///////////////////////////////////////////////////////////////////////////
  33. #include <windows.h>
  34. #include <windowsx.h>
  35. #include <olectl.h>
  36. #include <ddraw.h>
  37. #include <mmsystem.h>
  38.  
  39. #ifndef NUMELMS
  40.    #define NUMELMS(aa) (sizeof(aa)/sizeof((aa)[0]))
  41. #endif
  42.  
  43. ///////////////////////////////////////////////////////////////////////////
  44. // Include DirectShow include files
  45. ///////////////////////////////////////////////////////////////////////////
  46. #include <strmif.h>     // Generated IDL header file for streams interfaces
  47. #include <amvideo.h>    // ActiveMovie video interfaces and definitions
  48. #include <amaudio.h>    // ActiveMovie audio interfaces and definitions
  49. #include <control.h>    // generated from control.odl
  50. #include <evcode.h>     // event code definitions
  51. #include <uuids.h>      // declaration of type GUIDs and well-known clsids
  52. #include <errors.h>     // HRESULT status and error definitions
  53. #include <edevdefs.h>   // External device control interface defines
  54. #include <audevcod.h>   // audio filter device error event codes
  55. #include <dvdevcod.h>   // DVD error event codes
  56.  
  57. ///////////////////////////////////////////////////////////////////////////
  58. // Define OLE Automation constants
  59. ///////////////////////////////////////////////////////////////////////////
  60. #ifndef OATRUE
  61. #define OATRUE (-1)
  62. #endif // OATRUE
  63. #ifndef OAFALSE
  64. #define OAFALSE (0)
  65. #endif // OAFALSE
  66.  
  67. ///////////////////////////////////////////////////////////////////////////
  68. // Define Win64 interfaces if not already defined
  69. ///////////////////////////////////////////////////////////////////////////
  70.  
  71. // InterlockedExchangePointer
  72. #ifndef InterlockedExchangePointer
  73. #define InterlockedExchangePointer(Target, Value) \
  74.    (PVOID)InterlockedExchange((PLONG)(Target), (LONG)(Value))
  75. #endif 
  76.  
  77.  
  78. #endif // __DSHOW_INCLUDED__
  79.